<?php
$this->breadcrumbs = array(
    'Images' => array('index'),
    $model->id,
);

$this->menu = array(
    array('label' => 'List Images', 'url' => array('index')),
    array('label' => 'Upload Images', 'url' => array('upload')),
    array('label' => 'Update Image', 'url' => array('update','id'=>$model->id)),
);
?>

<h1>View Images #<?php echo $model->id; ?></h1>

<?php
$this->widget('bootstrap.widgets.TbDetailView', array(
    'data' => $model,
    'attributes' => array(
        'title',
        array(
            'name' => 'img_url',
            'header' => 'Ảnh',
            'type' => 'raw',
            'value' => CHtml::image(Yii::app()->request->baseUrl . '/upload/user/' . $model->user_created . '/images/' . $model->img_url, "", array("style" => "width:100px;"))
        ),
        'like_cnt',
        'view_cnt',    
        array(
            'name' => 'status',
            'value' => $model->status == 1 ? "Hiển thị" : "Ẩn"
        ),
        'created_at',
    ),
));
?>
